Skip to content

fix(skeleton): emit PLAYBOOK.deed, never .a2ml - #704

Open
hyperpolymath wants to merge 6 commits into
mainfrom
fix/skeleton-emit-deed-not-a2ml
Open

hyperpolymath wants to merge 6 commits into
mainfrom
fix/skeleton-emit-deed-not-a2ml

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • robot-repo-automaton's skeleton generated seven .a2ml descriptile files in every repo it scaffolded. A2ML is retired estate-wide (D99, D312, D313), so all seven templates are removed.
  • The skeleton now emits .machine_readable/descriptiles/PLAYBOOK.deed (empty sections, per the A7 ruling). It passes deed_lint.js from standards, plain and --strict.
  • The other six families (ANCHOR, META, STATE, ECOSYSTEM, AGENTIC, NEUROSYM) are not converted. Their facts are clauses of <repo>_chora.deed, which carries a per-repo minted identity.
  • The emitted Justfile also read and wrote STATE.a2ml (info, state-touch, state-phase). The new test caught this. Those recipes and the two just state-touch calls are removed, in their own commit.

Other legacy .a2ml files: none deleted

gitbot-fleet has no *_chora.deed (and no descriptile deed), so no target deed exists and conditions (a) and (b) cannot hold for any file. Hundreds of files also still reference a2ml (condition (c)). All 35 remaining .a2ml files are kept. There is no a2ml-legacy-allow.txt here.

Kept:
bots/rhodibot/canon/rsr-criteria-v2.a2ml, bots/echidnabot/tests/fixtures/manifest/{ephapax,valence-shell}.a2ml, 0-AI-MANIFEST.a2ml, audits/assail-classifications.a2ml, contractiles/{intend/Intentfile,must/Mustfile,trust/Trustfile}.a2ml, .machine_readable/{CLADE,CICD-PATTERNS,SESSION-2026-05-26-148,SESSION-2026-05-26-cicd}.a2ml, .machine_readable/descriptiles/*.a2ml (7), .machine_readable/integrations/*.a2ml (4), .machine_readable/bot_directives/*.a2ml (3), .machine_readable/contractiles/{dust,bust,trust}/*file.a2ml (3), robot-repo-automaton/.machine_readable/6a2/*.a2ml (6).

Test results

  • cargo build --release: OK.
  • Skeleton tests: 6 pass, including skeleton_emits_no_a2ml and emitted_deeds_lint (run with DEED_LINT pointing at standards' deed_lint.js).
  • Full lib suite: 76 of 77. The failure is fixer::tests::test_atomic_replace_failure_preserves_original_bytes (assertion failed: result.is_err()). It also fails on clean origin/main when run as root (uid 0), checked in a worktree of origin/main. It is pre-existing, unrelated to this change, and was not skipped or altered.

Notes

  • The two commits are ordered Justfile first, then template and tests, so each commit is green on its own.
  • rsr-template-repo's drift check (skeleton check) will report the removed .a2ml files as drift until it re-syncs.

Generated by Claude Code

Summary by CodeRabbit

  • New Features
    • Generated project templates now include a deed-based playbook with sections for deployment, incident response, releases, and maintenance.
  • Changes
    • The template no longer includes .a2ml descriptor files; its documentation reflects the deed-first layout and A2ML retirement.
    • The project information output no longer displays a current phase, and the state-update and phase-query commands have been removed.
    • The “run all” task now runs formatting, linting, tests, and documentation generation without a state update.

The emitted Justfile read and wrote .machine_readable/STATE.a2ml in
info, state-touch and state-phase. A2ML is retired, so remove those
recipes and the two 'just state-touch' calls that depended on them.
robot-repo-automaton's skeleton generated seven .a2ml descriptile files
in every repo it scaffolded. A2ML is retired estate-wide, so drop all
seven templates and emit .machine_readable/descriptiles/PLAYBOOK.deed
(empty sections, per the A7 ruling) instead. The other six families'
facts are clauses of <repo>_chora.deed, written when a repo is minted.

Tests now assert that no .a2ml is emitted or named by any emitted file,
and that each emitted deed lints (real deed_lint.js when DEED_LINT is
set).

Copy link
Copy Markdown
Owner Author

Two CI jobs are red on this PR (head b4f2b89). Neither failure is in code this PR changes:

  • build · test · clippy (robot-repo-automaton): all 77 lib tests pass in CI, including the new skeleton_emits_no_a2ml and emitted_deeds_lint. The job then fails on clippy needless_bool at robot-repo-automaton/src/confidence.rs:352. This PR does not touch that file (git diff origin/main on it is empty). The CI toolchain is Rust 1.100, which reports a lint that the older toolchain does not. It is a one-line fix (protected_dirs.iter().any(|dir| target.contains(dir))) that belongs in its own change.
  • GSBot build, tests and dependency security: the dependency audit fails on RUSTSEC-2026-0543 (chrono unmaintained) and RUSTSEC-2024-0388. This PR changes neither Cargo.toml nor Cargo.lock, so the advisory database moved, not this diff.

main's last recorded run of both checks was green, so I believe both are newly red on the base from a toolchain and advisory-database update. I have not confirmed that with a run on the base. I am not widening this PR to fix them and am leaving that decision to the owner.


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Coding Agent task started: View task and status

The task will inspect the CI failures, validate its fix, and commit the fix to this branch automatically.

Note: Fixing CI failures is a beta feature and may encounter errors. Expect some limitations and changes as we gather feedback and continue to improve it.

coderabbitai Bot and others added 2 commits November 22, 2026 14:46
…mat its skeleton test, and bump gsbot's URL dependencies

<!-- coderabbit-ai-generated:v1 -->
@hyperpolymath
hyperpolymath enabled auto-merge (squash) November 22, 2026 14:54
…eck, format its skeleton test, and bump gsbot's URL dependencies"

This reverts commit 2f0cae4.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0136P7ZpDuSqCp278XsDKftq

Copy link
Copy Markdown
Owner Author

Reverted CodeRabbit's autofix commit 2f0cae4 (revert 7791d7b) to keep this PR single-purpose; #705 and #706 carry those fixes (the confidence.rs clippy fix and the gsbot url patch).


Generated by Claude Code

Repository owner deleted a comment from coderabbitai Bot Nov 22, 2026
…eton PR

Collapse the protected-directory guard in confidence.rs to its boolean,
rustfmt the skeleton test, and bump url 2.5.8 -> 2.5.9 (and idna's
companion lock entry) in bots/gsbot/Cargo.lock.
The pinned-source manifest failure is separate and is not touched here.
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants